﻿package mortal.game.view.guildWar
{
    import mortal.game.view.common.*;

    public class GuildWarSecTimeView extends SecTimerView
    {
        protected var isSetChange:Boolean = false;

        public function GuildWarSecTimeView()
        {
            return;
        }// end function

        override protected function update() : void
        {
            super.update();
            if (!this.isSetChange && _secTimerViewData.leftTime <= 60)
            {
                this.isSetChange = true;
                colorChange = ["#1ccc31", "#df2121"];
            }
            if (this.isSetChange && _secTimerViewData.leftTime > 60)
            {
                colorChange = ["#1ccc31"];
                this.isSetChange = false;
            }
            return;
        }// end function

        override public function dispose(param1:Boolean = true) : void
        {
            this.isSetChange = false;
            super.dispose(param1);
            return;
        }// end function

    }
}
